package com.banana.manager.forest.entity.user;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDate;

@TableName("log_info")
@Getter
@Setter
@NoArgsConstructor
@ToString
public class LogBean {

    @TableId(value = "log_id", type = IdType.AUTO)
    private Integer logId;

    @TableField("log_detail")
    private String logDetail;

    @TableField("log_date")
    private LocalDate logDate;

    public LogBean(String logDetail, LocalDate logDate) {
        this.logDetail = logDetail;
        this.logDate = logDate;
    }
}
